#ifndef   __IIC___H_
#define   __IIC___H_

#define   P_SDA         P0_5
#define   P_SDA_IN      P0_DR&(1<<5)

#define   P_SCL         P0_6

#define   SCL_H         P_SCL=1
#define   SCL_L         P_SCL=0

#define   SDA_H         P_SDA=1
#define   SDA_L         P_SDA=0

#define   SDA_IN        P0_IN(5)
#define   SDA_OUT       P0_OUT(5)
#define   SDA_OD        P0_OD(5)

extern uint16_t i2c_read(uint8_t slaveAddr,uint8_t addr);
extern void i2c_wretie(uint8_t slaveWriteAddr,uint8_t addr,uint16_t dat);

#endif